<%@ Control Language="C#" AutoEventWireup="true" CodeFile="usrSalutation.ascx.cs"
    Inherits="controls_usrSalutation" %>
<asp:DropDownList ID="ddlSal" runat="server" ToolTip="Choose Salutation">
    <asp:ListItem Selected="True" Value="-1">Select</asp:ListItem>
    <asp:ListItem Value="Dr">Dr</asp:ListItem>
    <asp:ListItem Value="Mr">Mr</asp:ListItem>
    <asp:ListItem Value="Mrs">Mrs</asp:ListItem>
    <asp:ListItem Value="Ms">Ms</asp:ListItem>
    <asp:ListItem Value="Miss">Miss</asp:ListItem>
    <asp:ListItem Value="Mdm">Mdm</asp:ListItem>
</asp:DropDownList>
<asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvSalutation" runat="server" 
    ControlToValidate="ddlSal" ErrorMessage="" Text="" InitialValue="-1"></asp:RequiredFieldValidator>


<script type="text/javascript">
<!--
    
//   function ClientValidate(source, arguments)
//   {
//        if (arguments.Value == -1 ){
//            arguments.IsValid = false;
//        } else {
//            arguments.IsValid = true;
//        }
//   }

//    function GetSalutation()
//    {
//        var ddlSal = "<%=ddlSal.ClientID%>";
//        return document.getElementById(ddlSal).value;
//    }

    //-->
</script>

